﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Json.NET Demo</title>
    <link rel="stylesheet" type="text/css" href="css/easyui.css"/>

    <script type="text/javascript" src="scripts/jquery-1.4.4.min.js"></script>

    <script type="text/javascript" src="scripts/jquery.easyui.min.js"></script>

    <script type="text/javascript">
        $(function() {
        $('#tt2').tree({
            checkbox: true,
            url: 'PictureManager.Web.MyServ',
            onClick: function(node) {
                $(this).tree('toggle', node.target);
                //alert('you dbclick '+node.text);
            },
            onContextMenu: function(e, node) {
                e.preventDefault();
                $('#tt2').tree('select', node.target);
                $('#mm').menu('show', {
                    left: e.pageX,
                    top: e.pageY
                });
            }
        });
        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="EmployeeID"></asp:Label>
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox><br />
        <asp:Label ID="Label2" runat="server" Text="EmployeeName"></asp:Label>
        <asp:TextBox ID="txtName" runat="server"></asp:TextBox><br />
        <asp:Label ID="Label3" runat="server" Text="EmployeeInfo"></asp:Label>
        <asp:TextBox ID="txtInfo" runat="server"></asp:TextBox><br />
        <asp:Button ID="btnToJSONString" runat="server" OnClick="btnToJSONString_Click" Text="Invoke ToJSONString" />
        <asp:TextBox ID="txtJSON" runat="server" Rows="5" TextMode="MultiLine"></asp:TextBox><br />
        <asp:Button ID="btnToStrEmployee" runat="server" OnClick="btnToStrEmployee_Click"
            Text="Invoke ToStrEmployee" />
        <asp:TextBox ID="txtStrEmployee" runat="server" Rows="5" TextMode="MultiLine"></asp:TextBox>
        <button id="btnToJSON"></button><input id="txtOutPut" />
        <ul id="tt2"></ul><div>
    </form>
</body>
</html>
